import 'platform_web.dart' if (dart.library.io) 'platform_io.dart';

class JMExtensionPlatform {
  static bool get isWeb => JMExtensionPlatformIOAndWeb.isWeb;

  static bool get isMacOS => JMExtensionPlatformIOAndWeb.isMacOS;

  static bool get isWindows => JMExtensionPlatformIOAndWeb.isWindows;

  static bool get isLinux => JMExtensionPlatformIOAndWeb.isLinux;

  static bool get isAndroid => JMExtensionPlatformIOAndWeb.isAndroid;

  static bool get isIOS => JMExtensionPlatformIOAndWeb.isIOS;

  static bool get isFuchsia => JMExtensionPlatformIOAndWeb.isFuchsia;

  static bool get isMobile => JMExtensionPlatformIOAndWeb.isIOS || JMExtensionPlatformIOAndWeb.isAndroid;

  static bool get isDesktop =>
      JMExtensionPlatformIOAndWeb.isMacOS ||
      JMExtensionPlatformIOAndWeb.isWindows ||
      JMExtensionPlatformIOAndWeb.isLinux;
}
